/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sdc.msg;

import java.io.Serializable;
import java.util.Comparator;

/**
 *
 * @author yokoe
 */
public class OptionLess implements Comparator<Message>, Serializable{

	private static final long serialVersionUID = -1975209268561348381L;
	public static final OptionLess INSTANCE = new OptionLess();

	private OptionLess(){}

	@Override
	public int compare(Message m1, Message m2) {

		return (int)(m1.getOption() - m2.getOption());
	}
}
